#pragma once

#include <d3d9.h>
#include <d3dx9.h>

class CMenuItem
{
public:
	CMenuItem(void);
	~CMenuItem(void);

	void LoadSprite(LPDIRECT3DDEVICE9 d3ddv, LPCSTR filepath);
	void DrawSprite(LPD3DXSPRITE m_pSprite);
	void SetPosition(int x, int y);
	void SetCenterPosition(int x, int y);
	bool IsClick(int x, int y);

	LPDIRECT3DTEXTURE9		m_pTexture;

	int m_iPosX;
	int m_iPosY;
	int	m_iWidth;
	int m_iHeight;
	
};

